package com.example.vulnerableapplication.BroadcastReceiver;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;

import com.example.vulnerableapplication.Activity.TestActivity;

public class MyBroadcastReceiver extends BroadcastReceiver {
    @Override
    public void onReceive(Context context, Intent intent) {
            Log.e("Rzx","静态广播接受成功");
//        if("com.victim.messenger.IN_APP_MESSAGE".equals(intent.getAction())) {
//            Log.d("evil", "From: " + intent.getStringExtra("from") + ", text: " + intent.getStringExtra("text")); // the attacking app simply logs the intercepted data, but it could do anything it liked with them - e.g. send them to a remote server
//        }

//        Intent intent1 = new Intent(context, TestActivity.class);
//        intent1.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK );
//        context.startActivity(intent1);

    }
}